import server from "./server"

const serveHttp = {
    get(url, params, header) {
        const config = {
            method: 'get',
            url: url,
            params: params ? params : {},
            header: header ? header : {}
        }
        return server(config);
    },
    post(url, data, header) {
        const config = {
            method: 'post',
            url: url,
            data: data ? data : {},
            header: header ? header : {}
        }
        return server(config);
    }
}

export default serveHttp
